home *** CD-ROM | disk | FTP | other *** search
- /* datetest.mrbk */
-
- /* This ARexx script invokes MRBackup's date requester. */
-
- signal on ERROR
- signal on BREAK_C
-
- parse source type res called resolved ext host
-
- options results
-
- if ~(Show('P', 'MRBackup_#1')) then do
- say "You must run MRBackup first. With a little work, you could"
- say "get this ARexx script to do it for you."
- exit 1
- end
-
- address "MRBackup_#1"
-
- poptofront
-
- gettestdate
- if rc ~= 0 then do
- say "Failed to get test date; rc = " || rc
- exit rc
- end
-
- say "Current test date: " || result
-
- settestdate
- if rc ~= 0 then do
- say "Failed to set test date; rc = " || rc
- exit rc
- end
-
- say " Final test date: " || result
-
- exit 0
-
-
- /*------------------------------------------------------------------*/
-
- break_c:
-
- say "*** Control-C recieved. Stopped by user. ***"
- exit 5
-
- /*------------------------------------------------------------------*/
-
- error:
-
- say "Error"
- exit 6
-
- /*------------------------------------------------------------------*/
-
-